Sets the address values for all four fields in the IP address control
#Include <GuiIPAddress.au3>
_GUICtrlIpAddressSet ( hwnd, ip )
Parameters
hwnd | handle to a gui window |
ip | string containing new ip address for the control |
Return Value
Remarks
None
Related
_GUICtrlIpAddressClear, _GUICtrlIpAddressGet, _GUICtrlIpAddressIsBlank
Example
#include <GuiIPAddress.au3>
Opt("MustDeclareVars", 1)
_Main()
Func _Main()
Local $msg, $hgui, $button, $hIPAddress
$hgui = GUICreate("IP Address Control Create Example", 300, 150)
$hIPAddress = _GUICtrlIpAddressCreate ($hgui, 10, 10, 125, 30, $WS_THICKFRAME)
$button = GUICtrlCreateButton("Exit", 100, 100, 100, 25)
_GUICtrlIpAddressSet ($hIPAddress, "24.168.2.128")
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE Or $msg = $button
Exit
EndSelect
WEnd
EndFunc ;==>_Main